﻿package com.artionscript.tools.stamps.florids 
{
	import com.artionscript.tools.FillVO;
	import com.artionscript.tools.LineVO;
	import com.artionscript.tools.stamps.ArcStamp;
	import com.artionscript.tools.Tool;
	import flash.display.Sprite;
	/**
	 * ...
	 * @author Trevor Boyle
	 */
	public class Florid6 extends Tool
	{
		
		private const DEFAULT_WIDTH:Number = 50;
		
		public function Florid6(width:Number=0, height:Number=0, fillVO:FillVO=null, lineVO:LineVO=null, centre:Boolean=false) 
		{
			var container:Sprite = new Sprite();
			
			var s:Sprite = new Sprite;
			setFillAndLineStyle(fillVO,lineVO, s);
			s.graphics.drawPath(Vector.<int>([1,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,2,2,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,2,2,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,2,2,3,3,3,3,3,3,3,2,2,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,2,3,3,3,3,3,3,3,2,2,3,3,3,3,3,3,3,3,3,3,2,2,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,2]),Vector.<Number>([-90.259,-89.631,-87.56209183396837,-89.82126397467279,-84.42051171874999,-89.94525585937501,-79.93767295310178,-90.12218454079756,-75.26503124999999,-90.13167187500001,-69.37525140535458,-90.14363048713325,-63.54816015625,-89.887095703125,-56.629443918303394,-89.58250267380033,-50.0255,-88.908375,-33.91997202586502,-87.26432982898665,-20.585218750000003,-83.535890625,-4.394149242360041,-79.00881636588952,7.010999999999996,-71.589,33.79469532372324,-54.161738223610826,49.891,-29.186999999999998,65.10511135583249,-5.580899159236278,68.124,20.406000000000006,69.0710839011132,28.46250607574865,73.463,30.638000000000005,75.64845056738875,31.717541231300622,77.577,30.579000000000004,78.33745211695363,30.127858763950137,78.925,29.366000000000003,80.40287571380641,27.447636816631054,78.853,25.697000000000003,76.72703537586754,23.293375278758628,74.457,24.634000000000004,73.86209428032683,24.9849190700857,73.505,25.675000000000004,73.41307643832418,25.84980546154743,73.24799999999999,25.947000000000003,73.00695259871603,26.090021458095148,72.73599999999999,26.020000000000003,72.21317008997828,25.89185541421037,72.21999999999998,25.354000000000003,72.24438404525073,22.281610298421235,75.06599999999999,20.613000000000003,77.76171645636656,19.018159928887048,82.454,19.912000000000003,89.50831396550356,21.257067905207435,90.865,29.026000000000003,92.5129395084164,38.467491589178834,83.86699999999999,43.57900000000001,78.11911318464934,46.97642092647643,72.7585,45.27712500000001,69.40489410999946,44.21404347712419,66.82499999999999,41.46800000000001,65.36675335557607,43.83946754965285,63.49499999999999,44.94700000000001,61.32832331097529,46.227719878769825,59.03399999999999,45.47400000000001,55.977456657177996,44.4685989410413,54.20199999999999,45.51900000000001,52.798429662395336,46.34823942591666,52.88499999999999,48.03400000000001,52.90574060979242,48.42009442844369,52.57599999999999,48.63500000000001,52.58599999999999,48.823000000000015,52.43799999999999,48.70200000000001,52.06837401691791,48.83835091820362,51.77199999999999,48.594000000000015,50.6735540547806,47.679724632422236,49.6155,46.26337500000001,47.54717035633628,43.494633727004725,47.35699999999999,40.713000000000015,47.20700800620789,38.542615849828366,48.251999999999995,36.549000000000014,43.597103358626306,38.46804701158521,38.815999999999995,38.847000000000016,33.1261898467486,39.29646269985946,28.210874999999994,37.31812500000002,21.744699030477836,34.71558984339805,17.217999999999996,28.101000000000013,13.99028677032856,23.383729290360584,13.045499999999997,19.039500000000015,12.327690268332825,15.7389350903856,12.961999999999996,12.873000000000014,14.0218455424436,8.09826393250518,18.151999999999997,5.658000000000014,21.22414687711603,3.8389044488353976,24.439999999999998,4.250000000000014,27.87613252508907,4.687072337426771,29.522,7.470000000000015,29.53960824742269,7.498927835051583,29.558999999999997,7.543000000000015,31.678561928577953,12.383740719411804,27.450999999999997,14.885000000000016,27.126628623343308,15.077040765284323,26.790999999999997,14.902000000000015,26.455293791100853,14.727691006917766,26.427999999999997,14.352000000000015,26.155124506837836,10.950801888800063,23.165999999999997,11.140000000000015,22.2305713738946,11.20064367106033,21.546999999999997,11.606000000000014,20.019533799702007,12.51099267761559,19.842999999999996,14.840000000000014,19.45534737543391,19.953800943757784,24.067999999999998,23.727000000000015,30.16558216184377,28.714832563749944,38.723,23.657000000000014,49.75744827269245,17.134498925209183,47.105999999999995,-0.3209999999999873,45.587269476710844,-9.102084844167866,43.7065,-15.409374999999988,42.31975805808885,-20.059909745061894,40.852999999999994,-23.002999999999986,40.76257677790855,-17.881170348677607,36.361999999999995,-15.279999999999987,31.777149336413483,-12.569632495270625,27.108874999999994,-16.080874999999985,24.69011101105838,-17.900148314902335,23.308999999999994,-20.201999999999988,23.11133798566578,-20.52728630705393,23.300999999999995,-20.874999999999986,23.042999999999996,-21.301999999999985,23.497999999999994,-21.100999999999985,23.50700000000001,-21.10649999999999,23.52199999999999,-21.119999999999983,23.536999999999995,-21.133499999999987,23.545999999999992,-21.138999999999985,23.844634304207116,-21.31495210355986,24.165999999999993,-21.176999999999985,24.981563307494046,-20.820191052971484,26.134249999999994,-20.649124999999984,28.387687585056653,-20.314700497835197,29.942999999999994,-21.234999999999985,31.21992563141898,-21.988921360825803,31.606999999999996,-23.755999999999986,32.06436563891882,-25.845471788759312,31.126624999999997,-28.963124999999987,29.776907816967192,-33.45045330305887,25.693999999999996,-39.34599999999999,20.42860796974859,-46.94853663402491,13.52521875,-53.8799375,4.044174387688384,-63.39945277161149,-7.376,-70.42124999999999,-21.532179140125113,-79.12530442826359,-37.933468749999996,-83.51068749999999,-57.22613789051446,-88.66916873348079,-79.071,-87.689,-69.51578951894379,-85.62276034768125,-59.7085,-81.45887499999999,-46.79537585369583,-75.97634403956233,-33.989,-67.089,-29.03401481784691,-63.65231255482136,-24.558999999999997,-59.185,-23.3212473941449,-61.716329201709875,-20.857,-64.815,-19.98734432823816,-65.90828141592918,-18.743,-66.64399999999999,-10.196416783849106,-71.66364391839397,-5.249999999999998,-63.37599999999999,-4.505724592137527,-62.11538352793293,-4.237999999999998,-60.62899999999999,-3.2161351357600676,-55.060114170561995,-7.346999999999998,-52.642999999999994,-10.527075914483909,-50.77359841178945,-13.425999999999998,-52.151999999999994,-13.936999999999998,-52.397999999999996,-13.481999999999998,-52.733999999999995,-13.296266286645023,-52.54826628664485,-12.341999999999997,-53.93299999999999,-11.389349583775171,-55.33540768444251,-11.997999999999998,-56.53399999999999,-12.058891428571412,-56.653879999999965,-12.095999999999998,-56.71499999999999,-13.875064248596535,-59.7117818153906,-16.936999999999998,-57.91299999999999,-18.371061495665167,-57.04268476925782,-18.118,-55.24799999999999,-17.857888212470737,-53.4930104688467,-16.875999999999998,-51.83099999999999,-14.298613626604006,-47.475859590660505,-10.008999999999997,-47.48899999999999,-9.168999999999997,-47.48999999999999,-9.772999999999996,-46.90399999999999,-9.951916083916082,-46.7250839160839,-10.317999999999996,-46.508999999999986,-11.845216556810584,-45.59926914980108,-14.042999999999996,-45.826999999999984,-9.614846134681503,-38.546195621238084,-7.065999999999995,-30.529999999999983,-0.6620479871560219,-10.399125791059934,-6.641999999999995,2.68800000000002,-12.767174392990379,14.905898408074362,-10.807749999999995,30.11987500000002,-10.052496838638062,35.98404815158676,-8.109281249999995,42.068203125000025,-6.593304017458737,46.814686465745346,-4.444999999999995,51.428000000000026,7.072429496279559,76.15453136933584,19.694000000000003,79.16800000000002,22.13503283474825,79.83155259099554,23.565,78.98500000000001,25.36617045288556,77.92059935969675,25.240000000000002,75.17200000000001,25.11264718005084,72.36514384832043,23.505000000000003,71.60300000000001,21.805672942037535,70.7985313395816,20.696,71.45500000000001,19.766619787718447,72.00414063684583,19.220000000000002,73.644,19.154527195333444,73.93025319249567,18.904000000000003,74.078,18.745666666666672,74.173,18.566000000000003,74.173,18.029415563259683,74.17983547053173,17.898000000000003,73.661,16.629766163901966,68.67460666675599,21.043000000000003,66.066,25.88827780220048,63.20304077726604,29.846000000000004,65.665,33.117231207562305,67.69924989844165,33.643,72.009,37.30807518073659,70.33509418192594,41.987,72.871,44.39131584889999,74.17298482809078,47.716,72.208,48.951514788093064,71.47728434230017,49.717,70.706,49.92271071579844,70.50642990258362,50.195,70.346,52.382684575389945,69.05327729636049,53.972,70.308,54.97051622696469,71.09826952722341,54.515,72.58300000000001,54.59899999999921,72.3910000000017,54.497,72.62900000000002,50.39969511401852,83.07946317921353,43.129999999999995,87.37800000000001,32.02966532172218,93.9370771768111,17.073999999999995,85.52500000000002,2.834897550897305,77.51463266339272,-7.924,60.114,-14.29802240755862,49.80134795299555,-17.48075,39.096875,-19.899974903499253,30.96029189806493,-20.331,23.151999999999994,-20.69276345170795,16.57371275272196,-19.701999999999998,11.024999999999993,-21.327838508679463,12.676359519434355,-23.430999999999997,13.918999999999993,-30.922354833477897,18.347712710379575,-41.19799999999999,16.890999999999995,-51.260919614091534,15.467150367299427,-56.10699999999999,9.671999999999993,-66.86488691825073,-3.190320037476104,-58.160999999999994,-14.673000000000005,-56.03002106283631,-17.48483756410317,-58.004999999999995,-19.697000000000006,-60.88623195866004,-22.929788112767106,-64.002,-21.089000000000006,-64.77996225773545,-20.627650289017357,-65.07499999999999,-19.732000000000006,-65.70960177468113,-17.807091529055093,-64.93799999999999,-16.395000000000007,-63.98095066803691,-14.648804727646324,-61.65699999999999,-14.015000000000008,-61.13307177742357,-13.88017807953246,-61.14499999999999,-13.340000000000007,-61.15452258396602,-12.960683738686429,-61.47999999999999,-12.770000000000007,-61.575556069364154,-12.713879768786134,-61.68599999999999,-12.690000000000007,-67.9817543552825,-11.373072494834275,-70.38799999999999,-17.578000000000007,-73.350389957457,-25.217087752411807,-67.28699999999999,-28.800000000000004,-67.216,-28.843000000000004,-57.19768470932714,-34.608924442056505,-51.596,-25.133000000000003,-48.922213841182284,-20.61014926633438,-50.998,-15.207000000000003,-48.51978027161869,-15.445226729564023,-46.5635,-14.699625000000001,-43.658531498942146,-13.592447480428355,-42.549,-10.473000000000003,-40.83609859570551,-5.657016341548819,-45.513999999999996,-2.894000000000003,-46.752113722198956,-2.1621150335711024,-47.922999999999995,-1.8450000000000029,-48.294627906976736,-1.7466279069767479,-48.571999999999996,-2.0240000000000027,-49.25599999999999,-1.8400000000000027,-48.751999999999995,-2.336000000000003,-48.85038900406665,-2.717882744597709,-48.57599999999999,-2.986000000000003,-47.226983797879605,-4.318544697820993,-48.089999999999996,-5.438000000000002,-49.25757273639707,-6.953232088198609,-51.958999999999996,-5.357000000000002,-53.20021837326416,-4.621909507095982,-53.041999999999994,-2.990000000000002,-52.408399582532724,3.4992278050406647,-43.209999999999994,6.746999999999998,-35.932526591359895,9.318618701758982,-28.975999999999992,5.206999999999998,-24.995376993112675,2.85439677127512,-22.953999999999994,-1.0450000000000017,-20.691379048177108,-5.363122648693881,-21.90074999999999,-9.22925,-22.52344569212622,-11.219888888126931,-23.683999999999994,-12.387000000000002,-23.952843101711977,-12.65428006042296,-23.856999999999992,-13.036000000000001,-23.99799999999999,-13.174000000000001,-23.79799999999999,-13.184000000000001,-23.70198663396688,-13.366262660944212,-23.55099999999999,-13.456000000000001,-23.405868665977234,-13.542461220268876,-23.23699999999999,-13.55,-22.714956516573586,-13.574859213496497,-21.71299999999999,-14.166,-16.09576146076482,-17.486065371183752,-15.02399999999999,-24.880000000000003,-14.265341558785515,-30.11954254352139,-16.65987499999999,-36.29075,-19.809996921474173,-44.40926509610095,-28.19199999999999,-53.42400000000001,-37.050070617468585,-62.94933886144278,-49.169875,-70.663375,-58.38166527469542,-76.52651278976755,-68.833,-80.957,-76.51933523092292,-84.21521535753268,-84.249875,-86.46487499999998,-86.67635123563228,-87.17100236287101,-88.821578125,-87.692234375,-89.8912871703368,-87.95214469071387,-90.52199999999999,-88.08099999999999,-91.15857330145927,-88.21010782452132,-91.059,-88.85199999999999,-91.02300413494974,-89.09981768630755,-90.79599999999999,-89.276,-90.696552407932,-89.45466855524079,-90.556,-89.539,-90.4191042566317,-89.61924922887107,-90.259,-89.631,-90.259,-89.631]),"nonZero");
			s.graphics.endFill();
			container.addChild(s);
			
			if (width == 0) {
				width = DEFAULT_WIDTH;
			}
			
			if (height == 0) {
				height = (width / container.width) * container.height;
			}
			
			container.width = width;
			container.height = height;
			
			if (centre) {
				container.x = 0 - container.width / 2;
				container.y = 0 - container.height / 2;
			}
			
			this.addChild(container);
		}
		
	}

}